﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SignIn.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
   <a href = "HomePage.aspx?Name = @UserName" >chakan</a>
    <div height = 300 width = 800 >
    <table align =center bgcolor="#B2CA4A" >
    <tr>
    <td Width="300px" Height="200px" >
        <asp:Image ID="Image2" runat="server" ImageUrl="~/Images/SignInPic.jpg" 
            Width="400px" />
    </td>
    <td bgcolor="#B1CA4A" >
    <asp:Login ID="Login1" runat="server" Width="300px" Height="200px" 
            CssClass ="SignInTable" Font-Names="华文楷体" Font-Bold="True" 
            ForeColor="#336600" Font-Size="Large">
        <LayoutTemplate>
            <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
                <tr>
                    <td>
                        <table cellpadding="0" style="height:200px;width:300px;">
                            
                            <tr>
                                <td align="right">
                                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                        ControlToValidate="UserName" ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" 
                                        ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td align="right">
                                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密码:</asp:Label>
                                </td>
                                <td>
                                    <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                        ControlToValidate="Password" ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" 
                                        ValidationGroup="Login1">*</asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" align="center">
                                    <asp:CheckBox ID="RememberMe" runat="server" Text="下次记住我。" />
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2" style="color:Red;">
                                    <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="2">
                                    <asp:Button  ID="LoginButton" runat="server" CommandName="Login" Text="登 录" 
                                        ValidationGroup="Login1" BackColor="#D1E568" BorderColor="#446806" 
                                        Font-Bold="True" Font-Names="楷体" Font-Size="Medium" ForeColor="#336600" 
                                        onclick="LoginButton_Click" CausesValidation="False" />
                                    <asp:Button ID="Button1" runat="server" Text="Button" BackColor="#B1CA4A" 
                                        BorderColor="#B1CA4A" BorderStyle="None" Font-Names="AR BLANCA" 
                                        Font-Underline="True" onclick="Button1_Click" style="height: 17px" />
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </LayoutTemplate>
    </asp:Login>
    </td>
    </tr>
    </table>
    </div>
</asp:Content>

